package com.heima.admin.controller.v1;


import com.heima.common.dtos.PageResult;
import com.heima.model.user.dtos.AuthDto;
import com.heima.user.client.UserFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户审核相关
 */
@RestController
@RequestMapping("/api/v1/auth")
public class UserAuthController {

    @Autowired
    private UserFeignClient userFeignClient;

    /**
     * 分页查询用户审核信息
     * @param dto
     * @return
     */
    @PostMapping("/list")
    PageResult<AuthDto> list(@RequestBody AuthDto dto){
        return userFeignClient.list(dto);
    }
}
